package com.taboa.nettest;

import com.taobao.remoting.Client;
import com.taobao.remoting.Remoting;
import com.taobao.remoting.RemotingException;
import com.taobao.remoting.impl.RequestControlImpl;

public class ClientTest {
	public static void main(String[] args) throws RemotingException, InterruptedException{
		long timeoutMs = 3000;

		Client client = Remoting.clientMgr().get("cacheServer", " localhost:8990");
		UpdateCacheResponse resp = (UpdateCacheResponse) client.invokeWithSync(new UpdateCacheRequest(),
		        new RequestControlImpl(timeoutMs));

		System.out.println(resp.isOK());
	}
}
